package com.example.aninterface;


import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.example.aninterface.OneFragment.Fragment;

public class MainActivity extends AppCompatActivity {



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getSupportFragmentManager()
                .beginTransaction()
                .replace(R.id.oneFragment,new Fragment())
                .addToBackStack(null)
                .commit();
    }
}